package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"varchar(50)"`
	Password string `gorm:"varchar(50)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"varchar(50)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"varchar(50)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"varchar(50)"`
	Nid int `gorm:"varchar(50)"`
}
type OrderRepo struct {
	gorm.Model
	OrderId   string `gorm:"varchar(50)"`
	OrderCode string `gorm:"varchar(50)"`
	OrderName string `gorm:"varchar(50)"`
	Shop      string `gorm:"varchar(50)"`
	Rid       string `gorm:"varchar(50)"`
}
type Repo struct {
	gorm.Model
	RepoId   string `gorm:"varchar(50)"`
	RepoCode string `gorm:"varchar(50)"`
	RepoName string `gorm:"varchar(50)"`
}

type OrderRepoList struct {
	OrderId   string
	OrderCode string
	OrderName string
	Shop      string
	Rid       string
	RepoId    string
	RepoCode  string
	RepoName  string
}
